package com.txts.road.app.vehicle.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.txts.road.app.vehicle.model.dto.VehicleDTO;
import com.txts.road.app.vehicle.model.entity.VehicleEntity;
import com.txts.road.app.vehicle.model.vo.VehicleVO;


import java.util.List;

/**
 * 版本更新服务类
 *
 * @author baoyr
 * @since 2025-07-17 10:48
 */
public interface VehicleService extends IService<VehicleEntity> {
    /**
     * 添加车辆
     * @param addDTO 添加车辆信息
     * @return true-添加成功，false-添加失败
     */
    Boolean addVehicle(VehicleDTO addDTO);

    /**
     * 获取用户车辆列表
     * @return 车辆列表
     */
    List<VehicleVO> getVehicleList();

    /**
     * 更新车辆信息
     */
    Boolean updateVehicle(VehicleDTO updateDTO);

    /**
     * 删除车辆
     */
    Boolean deleteVehicle(Long vehicleId);

    /**
     * 设置默认车辆
     */
    Boolean setDefaultVehicle(Long vehicleId);
}
